<?php require 'page-check.php' ?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>新闻修改</title>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="description" content=>
		<meta name="keywords" content="">
		<link rel="shortcut icon" href="http://static.bootcss.com/www/assets/ico/favicon.png">
		<!-- 新 Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="plugin/bootstrap/bootstrap.min.css">
		<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
		<script src="plugin/jquery/jquery.min.js"></script>
		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
		<script src="plugin/bootstrap/bootstrap.min.js"></script>
	</head>
	<body>

		<h1 class="text-center">欢迎您 {$username}</h1>
		<hr />

		<div class="container">
			<form action="update-check.php" method="post">
			  <input type="hidden" name="newsid" value="{$newsid}"/>
			  <div class="form-group">
			    <label for="title">新闻标题：</label>
			    <input type="text" class="form-control" id="title" name="title" required autofocus value="{$rows['title']}">
			  </div>
			  <div class="form-group">
			    <label for="content">新闻内容：</label>
			    <textarea rows="10" class="form-control" id="content" name="content" required>{$rows['content']}</textarea>
			  </div>
			  <div class="form-group">
			    <label for="title">发布时间：</label>
			    <input type="text" class="form-control" value="{$rows['publish_date']}" disabled>
			  </div>
			  <div class="form-group">
			    <label for="title">浏览量：</label>
			    <input type="text" class="form-control" value="{$rows['views']}" disabled>
			  </div>
			  <button type="submit" class="btn btn-primary">执行修改</button>
			  <button type="button" class="btn btn-warning" onclick="history.back();">返　　回</button>
			</form>
		</div>		
	</body>
</html>
